package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffCommitQuesVirtualOrgMemberDto
 * @使用场景
 */
@Data
public class BffCommitQuesVirtualOrgMemberDto implements Serializable {

    /**
     * 虚拟组织成员ID
     */
    @ApiModelProperty("虚拟组织成员ID")
    private String virtualOrgMemberId;

    /**
     * 角色标识
     */
    @ApiModelProperty("角色标识")
    private String roleCode;

    /**
     * 组内职务名称
     */
    @ApiModelProperty("组内职务名称")
    private String virtualOrganizationPosition;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffCommitQuesVirtualOrgMemberDto that = (BffCommitQuesVirtualOrgMemberDto) o;
        return virtualOrgMemberId == that.virtualOrgMemberId && roleCode == that.roleCode && virtualOrganizationPosition == that.virtualOrganizationPosition;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), virtualOrgMemberId, roleCode, virtualOrganizationPosition);
    }

}
